package com.mlk.engSystem.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mlk.core.constants.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 业务员
 * @author xulu
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngSysEmp implements Serializable {

    private Integer id;

    private String name;


    private String openId;
    /**
     * 其实就是账号(username)
     */
    private String empCode;

    private String password;

    /**
     * 暂存点id
     */
    private Integer depositId;

    private String phone;

    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;

    private String createName;

    private Integer status;

    /**
     * 业务员的余额 是后台管理员对其进行管理的.
     */
    private BigDecimal remain;

    /**
     * 所申请的车辆的信息
     */
    private Integer carId;
}
